#pragma once

#include "Widgets/Window.h"

#include "DockableWindow.m.h"

class RDockLayout;

//a simple window that auto generate 
//when user drag a dock widget title bar out of dock layout
RCLASS()
class WHENGINE_API RDockableWindow : public RWindow
{
    ROBJECT

public:
    RDockableWindow();

    RWidgetPtr GetParentOfRootLayout();

    void SetRootLayout(TSharedObjectPtr<RDockLayout>InRootLayout);

    TSharedObjectPtr<RDockLayout> GetRootLayout();
protected:
    RWidgetWeakPtr ParentOfRootLayout;

    TWeakObjectPtr<RDockLayout> RootLayout;

};